html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  /* overflow-y: hidden; */
}

/* Warna ikon fullscreen dan magnifier */
.cloudimage-360-close-fullscreen-icon,
.cloudimage-360-magnifier-icon {
  color: #2b2b2b !important;
  fill: #2b2b2b !important;
}

.force-scrollable {
  overflow-x: auto !important;
  scroll-behavior: smooth;
}

/* Label deskripsi untuk ikon */
.ci360-icon-label {
  position: absolute;
  top: 8px;
  right: 48px; /* Menyesuaikan dari kanan */
  background: white;
  color: #333;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  white-space: nowrap;
}

@keyframes bounce-left {
  0%,
  100% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
}
@keyframes bounce-right {
  0%,
  100% {
    transform: translateX(2px);
  }
  50% {
    transform: translateX(-2px);
  }
}
.animate-bounce-left {
  animation: bounce-left 1s infinite;
}
.animate-bounce-right {
  animation: bounce-right 1s infinite;
}

.ongoing-pill {
  animation: pulse-badge 2s infinite;
  text-align: center;
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(100, 100, 100, 0.3); /* Soft white pulse */
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); /* Transparent fade-out */
  }
}

@keyframes swipeHint {
  0% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-8px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }
}
.swipe-hint {
  animation: swipeHint 2s ease-in-out infinite;
}

.underline-animation {
  position: relative;
  display: inline-block;
}

.underline-animation::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #2b2b2b;
  transition: width 0.3s ease;
  transform-origin: bottom center;
  transform: translateX(-50%);
}

.underline-animation:hover::after {
  width: 100%;
}

/* Saat group dihover, tampilkan mega menu dengan animasi */
/* .group:hover .mega-menu {
  display: flex !important;

  animation: slideDown 0.3s ease forwards;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

 .group:not(:hover) .mega-menu {
  display: flex !important;

  animation: slideUp 0.3s ease forwards;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
} */

.group:hover .text-gray-900 {
  color: #2b2b2b;
}

/* .group:hover .underline-animation::after {
  width: 100%;
} */

/* LOGIKA KETIKA DIBUKA MELALUI KLIK */
.group.group-open .mega-menu {
  /* display: flex !important; */
  visibility: visible;
  opacity: 0;
  pointer-events: auto;
  /* animation: slideDown 0.3s ease forwards; */
}

/* .group.group-open .underline-animation::after {
  width: 100%;
} */

.group.group-open .text-gray-900 {
  color: #2b2b2b !important;
}

/* Add this CSS to your stylesheet or in a <style> tag inside your HTML */

/* CSS untuk Animasi Slide Down */
/* Slide down animation */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animasi menghilang */
@keyframes slideUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.burger-toggle {
  --s: 20px; /* Kurangi ukuran burger menu */
  --c: #1e1e1e; /* Ganti dengan warna yang diminta */
  height: var(--s);
  aspect-ratio: 1;
  border: none;
  padding: 0;
  border-inline: calc(var(--s) / 3) solid #0000; /* Kurangi border untuk ketebalan lebih tipis */
  box-sizing: content-box;

  --_g1: linear-gradient(var(--c) 20%, #0000 0 80%, var(--c) 0) no-repeat
    content-box border-box;
  --_g2: radial-gradient(circle closest-side at 50% 12.5%, var(--c) 95%, #0000)
    repeat-y content-box border-box;

  background: var(--_g2) left var(--_p, 0px) top,
    var(--_g1) left calc(var(--s) / 10 + var(--_p, 0px)) top,
    var(--_g2) right var(--_p, 0px) top,
    var(--_g1) right calc(var(--s) / 10 + var(--_p, 0px)) top;
  background-size: 20% 80%, 40% 100%;

  position: relative;
  clip-path: inset(0 25%);
  -webkit-mask: linear-gradient(90deg, #0000, #000 25% 75%, #0000);
  cursor: pointer;
  transition: background-position 0.3s var(--_s, 0.3s),
    clip-path 0s var(--_s, 0.6s);
  -webkit-appearance: none;
  appearance: none;
}

.burger-toggle:before,
.burger-toggle:after {
  content: "";
  position: absolute;
  border-radius: var(--s);
  inset: 40% 0;
  background: var(--c);
  transition: transform 0.3s calc(0.3s - var(--_s, 0.3s));
}

.burger-toggle:checked {
  clip-path: inset(0);
  --_p: calc(-1 * var(--s));
  --_s: 0s;
}

.burger-toggle:checked:before {
  transform: rotate(45deg);
}

.burger-toggle:checked:after {
  transform: rotate(-45deg);
}

.burger-toggle:focus-visible {
  clip-path: none;
  -webkit-mask: none;
  border: none;
  outline: 2px solid var(--c);
  outline-offset: 5px;
}

.mega-menu {
  width: 80%;
  max-width: 1000px;
  padding: 20px 30px;
  background-color: #ffffff; /* full white */
  backdrop-filter: none; /* hapus blur */
  -webkit-backdrop-filter: none; /* Safari support */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 100;
}

/* Tombol close di pojok */
#mega-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  color: white;
  background: #2b2b2b;
  border-radius: 9999px;
  padding: 2px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 100;
}

#mega-close-btn:hover {
  transform: scale(1.05);
}

#mega-menu {
  backface-visibility: hidden;
  will-change: transform;
}

/* Untuk efek keluar manual (tanpa hover) */
.mega-menu.slide-up {
  animation: slideUp 0.3s ease forwards;
  /* Jangan langsung display: none di sini! */
}

/* Menyesuaikan ukuran teks dalam mega menu */
.mega-menu h3 {
  font-size: 0.75rem; /* Mengurangi ukuran font pada judul kategori */
}

.mega-menu .space-y-1 a {
  font-size: 0.875rem; /* Mengurangi ukuran font pada item menu */
  padding: 0.75rem; /* Mengurangi padding pada item menu */
}

/* Menyesuaikan ukuran ikon dalam mega menu */
.mega-menu i {
  font-size: 1rem; /* Mengurangi ukuran ikon */
}

/* Mengurangi jarak antar item di dalam mega menu */
.mega-menu .space-y-1 {
  gap: 0.5rem; /* Mengurangi jarak antar item */
}

/* Material Bubble Hover Effect */
.material-bubble {
  background-color: transparent;
  color: #2b2b2b; /* Default color */
  border: 2px solid #d1d5db; /* Light grey border */
  overflow: hidden;
  box-shadow: none;
  padding: 10px 20px;
  transition: background-color 0.3s, color 0.3s;
  position: relative; /* Ensures pseudo-elements stay within the button */
  width: 180px; /* Set width to your desired size */
  border-radius: 50px; /* Rounded button */
}

/* Hover effect - changes text color to white */
.material-bubble:hover {
  color: white; /* Text color changes to white on hover */
  background-color: transparent;
  border-color: #2b2b2b; /* Border color on hover */
}

/* Before - border animation on hover */
.material-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s, border 0.3s;
  z-index: 1; /* Ensures the border is on top of the button */
}

/* On hover, the border disappears */
.material-bubble:hover::before {
  opacity: 0;
}

/* After - bubble effect (circular animation) */
/* Scrollbar Styling untuk Mega Menu */
#mega-menu::-webkit-scrollbar {
  width: 8px;
}

/* Saat disembunyikan manual */
.mega-menu.fade-out {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}

#mega-menu::-webkit-scrollbar-thumb {
  background-color: var(
    --scroll-thumb-color,
    white
  ); /* Pakai variabel CSS kalau ada */
  border-radius: 10px;
}

#mega-menu::-webkit-scrollbar-track {
  background-color: transparent;
}

.material-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background-color: #2b2b2b; /* Apply the color for the bubble */
  border-color: transparent;
  border-radius: 50%;
  transform: translate(-10px, -70px) scale(0.1);
  opacity: 0;
  z-index: 0; /* Ensure the bubble effect stays behind the text and border */
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

/* On hover, the bubble grows and becomes visible */
.material-bubble:hover::after {
  opacity: 1;
  transform-origin: 100px 100px;
  transform: scale(1) translate(-10px, -70px);
}

/* Video Modal Scale Transitions */
#video-modal.scale-100 {
  transform: scale(1);
}

#video-modal.scale-95 {
  transform: scale(0.95);
}

#asset-carousel {
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-item.spotlight {
  position: relative;
}

.carousel-item.spotlight::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 220px;
  height: 220px;

  filter: blur(30px);
  z-index: -1;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-60px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(60px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

#tabs-wrapper {
  background-color: #f3f4f6;
  padding: 6px;
  border-radius: 9999px;
  display: flex;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

#tab-indicator {
  position: absolute;
  top: 4px;
  left: 0; /* Awal dari kiri */
  height: calc(100% - 8px);
  background-color: white;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, width 0.3s ease;
  z-index: 1;
  transform: translateX(0px);
  width: 0px; /* Nanti diatur JS saat load */
}

.tab-btn {
  position: relative;
  background-color: transparent;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: color 0.3s;
  z-index: 2;
}

.tab-btn:hover {
  color: #2b2b2b;
}

.active-tab {
  color: #2b2b2b;
}

.card {
  transition: all 0.3s ease;
}
.card:hover {
  background-color: #ffffff;
  border-color: #2b2b2b;
}

.custom-object-position {
  object-position: center 20%;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#clients-carousel {
  display: flex;
  align-items: center;
  width: max-content;
  animation: slide 30s linear infinite;
}

/* Khusus Packages Tabs */
#packages-tabs-wrapper {
  background-color: #f3f4f6;
  padding: 6px;
  border-radius: 9999px;
  display: flex;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

#packages-tab-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  background-color: white;
  border-radius: 9999px;
  transition: transform 0.3s ease, width 0.3s ease;
  z-index: 1;
  transform: translateX(0px);
  width: 0px;
}

.packages-tab-btn {
  position: relative;
  background-color: transparent;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: color 0.3s;
  z-index: 2;
}

.packages-tab-btn:hover {
  color: #2b2b2b;
}

/* Khusus Coffee Tabs */
#coffee-tabs-wrapper {
  background-color: #f3f4f6;
  padding: 6px;
  border-radius: 9999px;
  display: flex;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

#coffee-tab-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  background-color: white;
  border-radius: 9999px;
  transition: transform 0.3s ease, width 0.3s ease;
  z-index: 1;
  transform: translateX(0px);
  width: 0px;
}

.coffee-tab-btn {
  position: relative;
  background-color: transparent;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: color 0.3s;
  z-index: 2;
}

.coffee-tab-btn:hover {
  color: #2b2b2b;
}

.active-tab {
  color: #2b2b2b;
}

.custom-scroll::-webkit-scrollbar {
  height: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 9999px;
  border: 2px solid c; /* Border supaya smooth */
}

.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: white transparent;
  cursor: grab;
}

.custom-scroll:active {
  cursor: grabbing;
}

.coffee-card {
  transition: all 0.4s ease;
}

/* Hide scrollbar */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.breadcrumb-scroll-container {
  background-color: #ffeed2;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 2.5rem;
  max-width: 410px;
  min-width: 410px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin; /* Firefox */
}

.breadcrumb-scroll-container::-webkit-scrollbar {
  height: 6px; /* for horizontal scroll */
}

.breadcrumb-scroll-container::-webkit-scrollbar-thumb {
  background-color: #2b2b2b;
  border-radius: 6px;
}

.breadcrumb-scroll-container::-webkit-scrollbar-track {
  background: #ffeed2;
}

.breadcrumb-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  font-size: 0.8rem;
  font-weight: 500;
  color: #444;
}

.breadcrumb-inner a {
  color: #444;
  text-decoration: none;
}

.breadcrumb-inner a:hover {
  text-decoration: underline;
}

.breadcrumb-inner a.active {
  color: #2b2b2b;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #ffc15a 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
